{% extends "base.html" %}

{% block content %}
{% if latest_question_list %}
<div class="content">
  <ul>
    {% for question in latest_question_list %}
    <li><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></li>
    {% endfor %}
  </ul>
</div>
{% else %}
<div class="content">没有问题可展示</div>
{% endif %}
{% endblock %}